package com.fuluwa.infra.lucene;

import java.util.Map;

import com.fuluwa.infra.web.Result;

//FIXME eache module should have a DTO to submit the index ,and generate the relative API to index it and search it.
public interface LuceneService {

	/**
	 * @param uniquenID
	 *            Id should be unique for each record,not for each entity.
	 * @param fields
	 *            a mapping with field name and field value,while search,you can
	 *            specific the field name <br>
	 *            multi value should be LIST
	 * @return
	 */
	Result indexAddOrUpdadate(String uniquenID, Map<String, Object> fields);

	Result indexDelete(String uniquenID);
	
	//facetSearch
	
}
